package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easy.common.enumbean.UserStatus;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("sys_user")
public class SysUser extends BaseBean implements Serializable {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String email;
    private String phone;
    @TableField("is_super_administrator")
    private Integer issuperadministrator;
    private UserStatus status;
    @TableField(exist = false)
    private List<SysRole> roles;
}
